<!--{template common/header}-->
<!--{template focus/header}-->
<form action="index.php?option=focus" method="post" name="search">
	<input type="hidden" name="formhash" value="{FORMHASH}" />
	<input name="task" type="hidden" value="index">
	<table class='datalist'>
		<tr class="header">
			<td colspan="3">{lang Search}</td>
		</tr>
		<tr>
			<td width="30%">{lang Keyword}:</td>
			<td><input type="text" name="keyword" value="$keyword" size="40"></td>
			<td rowspan="3" width="200"><button name="search" value='{lang Search}' type="submit" class="btn">{lang Search}</button></td>
		</tr>
		<tr>
			<td width="30%">{lang Is Updated}:</td>
			<td>
				<input class="checkbox" name='created' type='radio' value='0' <!--{if $created==0}-->checked<!--{/if}-->><label for='created_'>{lang All}</label>
				<input class="checkbox" name='created' type='radio' value='1' <!--{if $created==1}-->checked<!--{/if}-->><label for='created_no'>{lang No}</label>
				<input class="checkbox" name='created' type='radio' value='2' <!--{if $created==2}-->checked<!--{/if}-->><label for='created_yes'>{lang Yes}</label>
			</td>
		</tr>
	</table>
</form>

<form action="index.php?option=focus" method="post" name="prefix">
	<table class="datalist fixwidth">
		<tr>
			<!--{if $_G[adminid]}-->
			<td>
				<div class="fixsel"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkall( this.form, 'ids')" /><label for="chkall">{lang Del}</label>
			</td>
			<!--{/if}-->
			<td>{lang Name}</td>
			<td>{lang Add Date}</td>
			<td>{lang Lastest update}</td>
			<td>{lang Enabled}</td>
			<td>{lang Action}</td>
		</tr>
        <!--{loop $kwlist $value}-->
        <tr>
			<!--{if $_G['adminid']}-->
			<td>
				<input type="checkbox" class="checkbox" name="ids[]" value="{$value[id]}">
			</td>
			<!--{/if}-->
			<td nowrap>
			<!--{if $_G[adminid] && $value[canedit]}-->
				<input type="text" class="input" name="newname[{$value[id]}]" value="$value[name]">
				<input type="hidden" class="input" name="oldname[{$value[id]}]" value="$value[name]">
			<!--{else}-->
				$value[name]
			<!--{/if}-->
			</td>
			<td nowrap>$value[dateline]</td>
			<td nowrap>
				<input type="hidden" name='oldcatid[{$value[id]}]' value='{$value[newscatid]}'>
				<select name='newcatid[{$value[id]}]'>
					<option value='0'{if $value[catid]==0} selected=true{/if}>
					{lang Select a category}
					</option>
					{loop $cattree $var}
					<option value="{$var[catid]}"{if $value[catid]==$var[catid]} selected=true{/if}>{$var[catname]}</option>
					{/loop}
				</select><br>
				$value[readtime]
			</td>
			<td>
			<!--{if $_G[adminid]}-->
				<input type="hidden" name='oldenabled[{$value[id]}]' value='{$value[enabled]}'>
				<label><input type="radio" name='newenabled[{$value[id]}]' value="0" class="pc vm" <!--{if !$value[enabled]}-->checked="checked"<!--{/if}--> />{lang No}</label>&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name='newenabled[{$value[id]}]' value="1" class="pc vm" <!--{if $value[enabled]}-->checked="checked"<!--{/if}--> />{lang Yes}</label>
			<!--{else}-->
				$value[isenabled]
			<!--{/if}-->
			</td>
			<td nowrap>
				<!--{if $_G[adminid]}-->
				<a href="index.php?option=focus&task=keyword&code=del&id={$value[id]}">{lang Del}</a> |
				<!--{/if}-->
				<a href="index.php?option=focus&task=update&id={$value[id]}">{lang Update}</a>
			</td>
		</tr>
        <!--{/loop}-->
		<tr><td colspan=2>
		<input type="hidden" name="page" value="{$page}">
		<button type="submit" name="submit" value="{lang Submit}" class="btn" >{lang Submit}</button>
		<input type="hidden" name="formhash" value="{FORMHASH}" /> 
		</td><td colspan=15>
		<!--{if $multi}--><div class="bm cl">$multi</div><!--{/if}-->
		</td></tr>
	</table>
</form>

<!--{if $_G['uid']}-->
<form method="post"  action="index.php?option=focus&task=new"> 
	<table class="datalist">
		<tr class="header"><th colspan="2">{lang Batch add keywords}</th></tr> 
		<tr align="center"> 
			<th align="left" style="width: 200px;" valign="top"><b>{lang Manually add keywords}</b><br>{lang Input box on the right keywords, one per line fill.<br> Keywords added, the system will be automatically collected through the Scheduled Tasks keyword content.}
			</td> 
			<td><textarea name="keywords" style="width: 98%; height: 240px;"></textarea></td> 
		</tr> 
		<tr>
			<td>{lang Pls select category}</td>
			<td class="pbt">
			<span class="ftid">
			<select name='newscategory' id='newcategory' width="195" tabindex=3>
			<option value='0'>{lang Pls select category}</option>
			{loop $cattree $var}
			<option value="{$var[catid]}">{$var[catname]}</option>
			{/loop}
			</select>
			</span>
			</td>
		</tr>
	</table> 
	<br> 
	<div class="buttons"> 
		<input type="hidden" name="formhash" value="{FORMHASH}" /> 
		<input type="submit" name="submit" value="{lang Submit}" class="btn"> 
	</div> 
</form> 
<script type="text/javascript">
	simulateSelect('newcategory', 200);
	simulateSelect('newcatid', 200);
</script>
<!--{/if}-->
<!--{template focus/footer}-->
<!--{template common/footer}-->
